Opened 12 years ago

Closed 12 years ago

#1791 closed defect (fixed)

ST_Azimuth returning null with very close (but not equal) points

Reported by: strk Owned by: pramsey
Priority: medium Milestone: PostGIS 2.0.1
Component: postgis Version: 2.0.x
Keywords: Cc:

Description

Given this input:

010100000000000000004065C0041AD965BE5554C0
010100000001000000004065C0041AD965BE5554C0

ST_Azimuth returns NULL.

See #1789 for origins of this

Change History (2)

comment:1 by strk, 12 years ago

This may possibly be improved by anchoring the segment to the origin and scaling up

comment:2 by strk, 12 years ago

Resolution: fixed
Status: newclosed

Doh… the code was using FP_EQUALS and intentionally returning NULL for very close (but not equal) points.

Fixed in r9682

Note: See TracTickets for help on using tickets.